package com.geekhalo.admin.domain.user.query;

import com.geekhalo.lego.annotation.singlequery.FieldEqualTo;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@NoArgsConstructor
@Data
public class GetByLoginName{
    @NotNull
    @FieldEqualTo("loginName")
    private String username;

    @NotNull
    private String password;

}
